<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改密码</title>
    <link type="text/css" rel="stylesheet" href="css/bootstrap.css">
    <link type="text/css" rel="stylesheet" href="css/bootstrap-theme.css">
    <script src="js/jQuery.js"></script>
    <script src="js/bootstrap.js"></script>
    <script src="js/jquery.easing.compatibility.js"></script>
    <script src="js/jquery.easing.1.3.js"></script>
    <script src="js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
    <script src="js/jquery.validate.js"></script>
    <script src="js/additional-methods.js"></script>
    <script src="js/messages_zh.js"></script>
    <style>

        .aue {
            margin: auto 450px;
            font-size: 25px
        }

        .aa {
            margin: 20px auto 20px 450px;
            font-size: 15px
        }
        .reg{
            margin-left: 300px;
        }
        span {
            width: 80px;
            display: inline-block;
        }

        .reg input{
            width: 300px;
            height: 35px;
            padding: 10px 20px 10px 10px;

        }
        .reg div{
            padding: 10px 0;

        }
        .reg button{
            width: 200px;
            height: 50px;
            background-color: #9d9d9d;
        }
        .reg label{
            padding: 10px 20px 10px 10px;

        }
        div,span,label,input,button,form{
            margin: 0;
            padding: 0;
        }
    </style>

</head>
<body>
<div class="aue"><a href="/www/main" style="text-decoration: none"><img src="99.jpg"></a></div>

<hr>
<div style="width: 1000px;height: 150px"></div>


<form class="form-horizontal" id="xg" method="post">

    <div class="reg form-group">
        <div>
            <label class="control-label col-md-5">请输入账号：</label>
            <input class="form-control" type="password" required name="name">
        </div>
        <div>
            <label class="control-label col-md-5">请输入旧密码：</label>
            <input class="form-control" type="password" required name="old_pwd">
        </div>
        <div>
            <label class="control-label col-md-5">请输入新密码：</label>
            <input class="form-control" type="password" name="new_pwd">
        </div>
        <div>
            <label class="control-label col-md-5">请确认密码：</label>
            <input class="form-control" type="password"  name="sec_pwd">
        </div>


        <div style="font-size: 30px;" class="col-md-offset-5">
            <button type="submit" id="regxg">修改</button>
        </div>

    </div>

</form>

<script>


   $("#regxg").click(function(){
       var data =$("#xg").serialize();
       $.ajax({
           url: "/update_userpwd",
           type: "POST",
           data: data,



       });
   })
</script>
</body>
</html>